<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../org/angular.min.js"></script>

</head>
<body>
<div onclick="run()">原生单击事件</div>

<div ng-app="hd" ng-controller="ctrl">
    <div ng-click="show()">单击事件</div>
    <div ng-dblclick="show()">双击事件</div>
    <hr>
    <input type="text" ng-blur="show()" ng-focus="show()" ng-change="show()" ng-model="data">
</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
        $scope.show = function () {
            alert('事件');
        }
    }]);

    function run() {
        alert('原生事件');
    }
</script>

</body>
</html>

